www.mxdraw.com
|
添加一个页眉或页脚数据
[helpstring("method AddPageComment")] HRESULT AddPageComment([in] BSTR sText, [in] BSTR sFont, [in] DOUBLE iFontSize, [in] LONG pos, [out,retval] VARIANT_BOOL* pRet);
参数 |
说明 |
[in] BSTR sFont |
字体 |
[in] DOUBLE iFontSize |
字体大小,单位是mm |
[in] LONG pos |
字体位置 |
sTxt |
打印的文字内容 |
例如: c#
MxDrawPrint print = new MxDrawPrint(); print.AddPageComment("TTTTTT中文", "宋体", 3, 1); print.AddPageComment("TTTTTT中文", "宋体", 3, 2); print.AddPageComment("TTTTTT中文", "宋体", 3, 3); print.AddPageComment("TTTTTT中文2", "宋体", 3, 4); print.AddPageComment("TTTTTT中文2", "宋体", 3, 5); print.AddPageComment("TTTTTT中文2", "宋体", 3, 6); print.Print(getpoint.value().x, getpoint.value().y, retParam.AtDouble(1), retParam.AtDouble(2));